Optimal. Leaf size=146 \[ \frac {3 b (7 A+4 C) \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right ) \sqrt [3]{b \sec (c+d x)} \sin (c+d x)}{7 d \sqrt {\sin ^2(c+d x)}}+\frac {3 B \, _2F_1\left (-\frac {2}{3},\frac {1}{2};\frac {1}{3};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{4/3} \sin (c+d x)}{4 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C (b \sec (c+d x))^{4/3} \tan (c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 146, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {4132, 3857,
2722, 4131} \begin {gather*} \frac {3 b (7 A+4 C) \sin (c+d x) \sqrt [3]{b \sec (c+d x)} \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right )}{7 d \sqrt {\sin ^2(c+d x)}}+\frac {3 B \sin (c+d x) (b \sec (c+d x))^{4/3} \, _2F_1\left (-\frac {2}{3},\frac {1}{2};\frac {1}{3};\cos ^2(c+d x)\right )}{4 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C \tan (c+d x) (b \sec (c+d x))^{4/3}}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2722
Rule 3857
Rule 4131
Rule 4132
Rubi steps
\begin {align*} \int (b \sec (c+d x))^{4/3} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {B \int (b \sec (c+d x))^{7/3} \, dx}{b}+\int (b \sec (c+d x))^{4/3} \left (A+C \sec ^2(c+d x)\right ) \, dx\\ &=\frac {3 C (b \sec (c+d x))^{4/3} \tan (c+d x)}{7 d}+\frac {1}{7} (7 A+4 C) \int (b \sec (c+d x))^{4/3} \, dx+\frac {\left (B \sqrt [3]{\frac {\cos (c+d x)}{b}} \sqrt [3]{b \sec (c+d x)}\right ) \int \frac {1}{\left (\frac {\cos (c+d x)}{b}\right )^{7/3}} \, dx}{b}\\ &=\frac {3 B \, _2F_1\left (-\frac {2}{3},\frac {1}{2};\frac {1}{3};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{4/3} \sin (c+d x)}{4 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C (b \sec (c+d x))^{4/3} \tan (c+d x)}{7 d}+\frac {1}{7} \left ((7 A+4 C) \sqrt [3]{\frac {\cos (c+d x)}{b}} \sqrt [3]{b \sec (c+d x)}\right ) \int \frac {1}{\left (\frac {\cos (c+d x)}{b}\right )^{4/3}} \, dx\\ &=\frac {3 b (7 A+4 C) \, _2F_1\left (-\frac {1}{6},\frac {1}{2};\frac {5}{6};\cos ^2(c+d x)\right ) \sqrt [3]{b \sec (c+d x)} \sin (c+d x)}{7 d \sqrt {\sin ^2(c+d x)}}+\frac {3 B \, _2F_1\left (-\frac {2}{3},\frac {1}{2};\frac {1}{3};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{4/3} \sin (c+d x)}{4 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C (b \sec (c+d x))^{4/3} \tan (c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.63, size = 290, normalized size = 1.99 \begin {gather*} -\frac {3 i b \left (-7 B+28 A e^{i (c+d x)}+8 C e^{i (c+d x)}+56 A e^{3 i (c+d x)}+40 C e^{3 i (c+d x)}+7 B e^{4 i (c+d x)}+28 A e^{5 i (c+d x)}+16 C e^{5 i (c+d x)}+7 B \left (1+e^{2 i (c+d x)}\right )^{7/3} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-e^{2 i (c+d x)}\right )-14 A e^{i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{7/3} \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};-e^{2 i (c+d x)}\right )-8 C e^{i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{7/3} \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};-e^{2 i (c+d x)}\right )\right ) \sqrt [3]{b \sec (c+d x)}}{28 d \left (1+e^{2 i (c+d x)}\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.22, size = 0, normalized size = 0.00 \[\int \left (b \sec \left (d x +c \right )\right )^{\frac {4}{3}} \left (A +B \sec \left (d x +c \right )+C \left (\sec ^{2}\left (d x +c \right )\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \sec {\left (c + d x \right )}\right )^{\frac {4}{3}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{4/3}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________